#!/usr/bin/env python
#-*- encoding=utf-8 -*-
class Var:
	def __init__(self, type_v, name):
		self.type_v = type_v
		self.name = name
		self.descs = []

	def appendDesc(self, desc):
		self.descs.append(desc)

class Func:
	def __init__(self,type_v, name):
		self.type_v = type_v
		self.name = name
		self.modifier = ""

	
class Class:
	def __init__(self, name):
		self.name = name
		self.descs = []
		self.vars = []

	def appendDesc(self, desc):
		self.descs.append(desc)


	def appendVar(self, var):
		self.vars.append(var)

	
class File:
	def __init__(self, name):
		self.name = name
		self.descs = []
		self.nameSpace = ""
		self.headFiles = []
		self.classMap = {}
		

	def appendDesc(self, desc):
		self.descs.append(desc)
	
	def addNameSpace(self, nameSpace):
		self.nameSpace = nameSpace

	def addHeadFile(self, headFile):
		self.headFiles.append(headFile)

	def addClass(self, class_v):
		self.classMap[cass_v.name] = class_v
	

